package org.jeecg.modules.flower.vo;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.flower.entity.FlowerOutorder;
import org.jeecg.modules.flower.entity.FlowerOutorderinfo;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 出库单主表
 * @Author: jeecg-boot
 * @Date:   2022-06-27
 * @Version: V1.0
 */
@Data
@ApiModel(value="t_flower_outorderPage对象", description="出库单主表")
public class FlowerOutorderPage {

	/**id*/
	@ApiModelProperty(value = "id")
	private String id;
	/**订单号*/
	@Excel(name = "订单号", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "订单号")
	private String orderNo;
	/**来源基地*/
	@Excel(name = "来源基地", width = 15,dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
	@ApiModelProperty(value = "来源基地")
	@Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
	private String sourceBase;
	/**来源大棚*/
	@Excel(name = "来源大棚", width = 15,dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
	@ApiModelProperty(value = "来源大棚")
	@Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
	private String sourceGreenhouse;
	/**出库数量*/
	@Excel(name = "出库数量", width = 15 ,needMerge = true, type=4 , isStatistics=true)
	@ApiModelProperty(value = "出库数量")
	private BigDecimal number;
	/**总金额*/
	@Excel(name = "总金额", width = 15,needMerge = true, type=4 , isStatistics=true)
	@ApiModelProperty(value = "总金额")
	private BigDecimal totalprice;
	/**出库时间*/
	@Excel(name = "出库时间", width = 15, format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "出库时间")
	private Date stockInTime;

	/**出库人*/
	@Excel(name = "出库人", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "出库人")
	private String stockOutUser;

	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "提交审核时间")
	private Date topresstime;

	@ApiModelProperty(value = "出库人id")
	private String stockOutUserid;
	/**车牌*/
	@Excel(name = "车牌", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "车牌")
	private String carNo;
	/**司机*/
	@Excel(name = "司机", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "司机")
	private String carDerver;
	/**司机电话*/
	@Excel(name = "司机电话", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "司机电话")
	private String carPhone;
	/**渠道类型（先款后货，先货后款）*/
//	@Excel(name = "渠道类型（先款后货，先货后款）", width = 15)
	@ApiModelProperty(value = "渠道类型（先款后货，先货后款）=====没用")
	private String type;

	@Excel(name = "销售单号", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "销售单号")
	private String sealNo;

	/**订单类型：0：采后系统订单，1：销售系统门户订单，2：销售系统后台订单*/
//	@Excel(name = "订单类型：0：采后系统订单，1：销售系统门户订单，2：销售系统后台订单", width = 15,needMerge = true)
	@ApiModelProperty(value = "订单类型：0：采后系统订单，1：销售系统门户订单，2：销售系统后台订单")
	private Integer orderType;

	@Excel(name = "业务员", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "业务员")
	private String businessPerson;

	@Excel(name = "来源", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "来源")
	private String source;

	/**'客户id'*/
	@ApiModelProperty(value = "客户id")
	private String userid;
	/**'客户名称'*/
	@Excel(name = "客户名称", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "客户名称")
	private String user;

	@ApiModelProperty(value = "客户余额")
	private String customMoney;
	/**'联系电话'*/
	@Excel(name = "联系电话", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "联系电话")
	private String phone;    /**'联系电话'*/

	@Excel(name = "地址", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "地址 ")
	private String address;

	@Excel(name = "收件人", width = 15,needMerge = true)
	@ApiModelProperty(value = "收件人")
	private String touser;
	@Excel(name = "收件电话", width = 15,needMerge = true)
	@ApiModelProperty(value = "收件电话")
	private String tophone;
	@Excel(name = "物流信息", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "物流信息")
	private String logistics;

	@Excel(name = "是否需要开票", width = 15,needMerge = true )
	@ApiModelProperty(value = "是否需要开票")
	private String isinvoice;

	/**备注*/
	@Excel(name = "备注", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "备注")
	private String remarks;


	@Excel(name = "基地负责人审核", width = 15  ,needMerge = true)
	@ApiModelProperty(value = "基地负责人审核")
	private String finaSureUser;
	/**财务确认日期*/
	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "基地负责人审核日期", width = 15, format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true )
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "基地负责人审核日期")
	private Date finaSureTime;

	@Excel(name = "运管备案", width = 15, needMerge = true)
	@ApiModelProperty(value = "运管备案")
	private String surepipeuser;

	@Excel(name = "运管备案时间", width = 15, format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true)
	@TableField( updateStrategy = FieldStrategy.IGNORED )
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "运管备案时间")
	private Date surepipetime;

	@Excel(name = "库管确认出库人", width = 15  ,needMerge = true)
	@ApiModelProperty(value = "库管确认出库人")
	private String sureoutuser;

	@TableField( updateStrategy = FieldStrategy.IGNORED )
	@Excel(name = "库管确认出库时间", width = 15, format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true )
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "库管确认出库时间")
	private Date sureouttime;

	@ApiModelProperty(value = "结算确认")
	private String accounter;

	@TableField( updateStrategy = FieldStrategy.IGNORED )
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "结算确认时间")
	private Date accounttime;

	@Excel(name = "账期号", width = 15  ,needMerge = true  )
	@ApiModelProperty(value = "账期号")
	private String period;

	@Excel(name = "账期状态", width = 15,needMerge = true   )
	@ApiModelProperty(value = "账期状态")
	private String periodState;

	/**创建日期*/
	@Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;

//	-1——》3——》1——》2——》0->4
	@Excel(name = "状态", width = 15 , dicCode = "ch_outorderState" , needMerge = true  )
	@ApiModelProperty(value = "状态（-2删除 -1草稿，0库管已确认出库，1基地负责人审核，2运管备案，3待审核，4结算确认） -1——》3——》1——》2——》0->4")
	private Integer state;

	/**创建人*/
	@Excel(name = "创建人", width = 15,  dictTable = "sys_user",dicText = "realname",dicCode = "username" ,needMerge = true )
	@Dict( dictTable = "sys_user",dicText = "realname",dicCode = "username")
	@ApiModelProperty(value = "创建人")
	private String createBy;

	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;


	@ExcelCollection(name="出库单子表")
	@ApiModelProperty(value = "出库单子表")
	private List<FlowerOutorderinfo> flowerOutorderinfoList;
	
}
